package com.kust.eduService.client;

import com.kust.commomUtils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 马强
 * @Description
 * @create 2022-06-28 16:02
 */
@FeignClient(name = "service-vod",fallback = VodFileDeGradeFeignClint.class) //调用服务的名称
@Component
public interface VodClient {

    //定义调用的方法路径
    //根据视频id删除视频
    @DeleteMapping("/eduVod/video/removeALYVide/{id}")
    public Result removeALYVide(@PathVariable("id") String id);

    @DeleteMapping("/eduVod/video/delete-batch")
    public Result deleteBatch(@RequestParam("videoList") List<String> list);
}
